import axios from "../utils/axios";

export default {
  get() {
    return axios.get("/api/address");
  },
  add(address) {
    return axios.post("/api/address", {
      data: address
    });
  },
  del(id) {
    return axios.delete("/api/address/" + id);
  },
  update(id, address) {
    return axios.post("/api/address/" + id, {
      data: address
    });
  }
};
